/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package src.parseInfo;

/**
 *
 * @author LeMinh
 */
public class FPTShopParseInfo implements WebParseInfor{

    @Override
    public String getWebPage() {
        return "http://fptshop.com.vn/";
    }

    @Override
    public String getParsePage() {
        return "http://fptshop.com.vn/";
    }

    @Override
    public String getMenuLinksXpath() {
       return "//div[@class='leftMenu']/ul/li/div/a";
    }

    @Override
    public String getPagingLinksXpath() {
       return ".//*[@class='paging']/a/@href";
    }

    @Override
    public String getProductsXpath() {
        return ".//*[@id='ulpdl']/li";
    }

    @Override
    public String getLinkXpath() {
        return "./div/div[3]/div/a/@href";
    }

    @Override
    public String getImgXpath() {
        return "./div/div[1]/a/img/@src";
    }

    @Override
    public String getNameXpath() {
        return "./div/div[3]/div/a/text()";
    }

    @Override
    public String getPriceXpath() {
        return "./div/div[3]/div[2]/text()";
    }

}
